<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
    <class name="cn.ffcs.tmp.model.Annex" table="T_TMP_ANNEX" >
        <id name="id" type="java.lang.Integer">
            <column name="id" />
            <generator  class="cn.ffcs.util.hibernate.generator.MyGenerator">
				<param name="table">T_COMM_SEQUENCE</param>
				<param name="column">NEXT_VAL</param>
				<param name="sequence_column">NAME</param>
				<param name="sequence_name">SEQ_TMP_ANNEX</param>
			</generator>
        </id>
        <property name="fullName" type="java.lang.String">
            <column name="full_name" length="32" not-null="false" />
        </property>
        <property name="name" type="java.lang.String">
            <column name="name" length="256" not-null="false" />
        </property>
        <property name="prefix" type="java.lang.String">
            <column name="prefix" length="20" not-null="false" />
        </property>
        <property name="fileType" type="java.lang.String">
            <column name="file_Type" length="32" not-null="false" />
        </property>
        <property name="content" type="org.springframework.orm.hibernate3.support.BlobByteArrayType" lazy="true">
            <column name="content"   />
        </property>
        <property name="refEntity" type="java.lang.String">
            <column name="ref_entity" length="32" not-null="false" />
        </property>
        <property name="refEntityID" type="java.lang.String">
            <column name="ref_entity_id" length="64" not-null="true" />
        </property>
        <property name="isPublish" type="java.lang.Integer">
            <column name="is_publish" length="1" not-null="true" />
        </property>
        <property name="creator" type="java.lang.String">
            <column name="creator" length="64" not-null="true" />
        </property>
        <property name="begin" type="timestamp">
            <column name="begin" length="32" not-null="true" />
        </property>
        <property name="end" type="timestamp">
            <column name="end" length="32" not-null="true" />
        </property>
    </class>
</hibernate-mapping>